//
//  ZCSearchSamplingCell.m
//  zctx
//
//  Created by apple on 15/12/3.
//  Copyright © 2015年 sanliang. All rights reserved.
//

#import "ZCSearchSamplingCell.h"

@implementation ZCSearchSamplingCell

- (void)awakeFromNib {
    // Initialization code
}

-(void)setModel:(ZCfollowModelContent *)Model{
    _Model = Model;
    self.titleLable.text = [NSString stringWithFormat:@"%@",Model.pjname];
    self.contentLable.text = [NSString stringWithFormat:@"%@",Model.packagename];
    self.adressLable.text = [NSString stringWithFormat:@"%@",Model.location];
    if ([Model.state isEqualToString:@"0"]) {
        [self.imgView setImage:[UIImage imageNamed:@"search_examine"]];
    }else{
        [self.imgView setImage:[UIImage imageNamed:@"search_sampling"]];
    }
}

-(void)setSamplingModel:(ZCSearchModel *)samplingModel{
    _samplingModel = samplingModel;
    self.titleLable.text = [NSString stringWithFormat:@"%@",samplingModel.name];
    self.contentLable.text = [NSString stringWithFormat:@"%@",samplingModel.packagename];
    self.adressLable.text = [NSString stringWithFormat:@"%@",samplingModel.location];
    if (samplingModel.state==0) {
        [self.imgView setImage:[UIImage imageNamed:@"search_examine"]];
    }else{
        [self.imgView setImage:[UIImage imageNamed:@"search_sampling"]];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
